package com.shop.cereshop.agent.dao.product;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.cereshop.agent.page.product.CartVO;
import com.shop.cereshop.agent.page.product.SkuAttributeVO;
import com.shop.cereshop.commons.domain.agentProduct.CereAgentCart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AgentCartDAO extends BaseMapper<CereAgentCart> {
  /**
   * 查询购物车列表
   */
  List<CartVO> selectCarts(Long agentUserId);

  /**
   * 批量删除购物车
   */
  Integer deleteBatchIdsByAgentUserId(List<Long> cartIds);

  /**
   * 查询规格属性
   */
  List<SkuAttributeVO> selectCartSpecs(@Param("skuId") Long skuId);
}
